<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		
		
		<table>
			<tr><td>1</td></tr>
			<tr><td>2</td></tr>
			<tr><td>3</td></tr>
			<tr><td>4</td></tr>
			<tr><td>5</td></tr>
		</table>
		<script>
			var str = '';
			str += '<table>';// str = str + '<table>';
//			str += '<tr><td>1</td></tr>';
//			str += '<tr><td>2</td></tr>';
//			str += '<tr><td>3</td></tr>';
//			str += '<tr><td>4</td></tr>';
//			str += '<tr><td>5</td></tr>';
			for(var i=1;i<=5;i++){
				console.log(i);
				str += '<tr><td>'+i+'</td></tr>';
			}
			
			str += '</table>';
			document.write(str);
		</script>
	</body>
</html>



































